#pragma once

#include "BaseWindow.h"
#include "ui_BaseDlg.h"

class BaseDlg : public BaseWindow
{
	Q_OBJECT

public:
	BaseDlg(QWidget* parent = nullptr, const QString& title = "BaseDlg", bool isRoot = true);
	~BaseDlg();
	bool showDialog();
protected:
	template <typename T>
	void setupUi(T& ui)
	{
		ui.setupUi(&this->content_view);
		this->_setupUi();
	}
	Ui::BaseDlg base_ui;
public:
	QWidget content_view;
private:
	void _setupUi();
};